#include <bits/stdc++.h>

#define in read()
#define fi first
#define se second
#define pb push_back
#define rep(i, x, y) for(int i = (x); i <= (y); i++)
#define per(i, x, y) for(int i = (x); i >= (y); i--)

using namespace std;

using pii = pair < int , int >;
using vec = vector < int >;
using veg = vector < pii >;
using ll = long long;

int read() {
    int x = 0; bool f = 0; char ch = getchar(); while(!isdigit(ch)) f |= ch == '-',ch = getchar();
    while(isdigit(ch)) x = x * 10 + (ch ^ 48),ch = getchar(); return f ? -x : x;
}

void solve() {
	ll n; cin >> n;
	ll res = 0;
	while(n) {
		int cnt = 0;
		while(n % 2 == 0) cnt++, n /= 2;
		if(cnt >= 2) {
			if(res & 1) return puts("Bob"), void();
			else return puts("Alice"), void();
		} res += cnt; n--; res++;
	}
	puts(res & 1 ? "Alice" : "Bob");
}

int main() {
#ifndef ONLINE_JUDGE
    freopen("1.in","r",stdin);
#endif
    int t; cin >> t;
	while(t--) solve();
}
